CustomSpEntry

constructor(uiModeType: UiModeType? = null, dpQualifierEntry: DpQualifierEntry? = null, orientation: Orientation = Orientation.DEFAULT, customValue: Number, finalQualifierResolver: DpQualifier? = null, priority: Int, inverter: Inverter = Inverter.DEFAULT, fontScale: Boolean = true)

Parameters

uiModeType

The UI mode (CAR, TELEVISION, WATCH, NORMAL). Null for any mode.

dpQualifierEntry

The Dp qualifier entry (type and value). Null if only UI mode is used.

orientation

The screen orientation (LANDSCAPE, PORTRAIT, DEFAULT).

customValue

The base Int Sp value to be used if the condition is met.

finalQualifierResolver

Optional override for the scaling qualifier at resolution time.

priority

The resolution priority. 1 is most specific (UI + Qualifier), 4 is least specific.

inverter

The inverter type to adapt scaling on rotation changes.

fontScale

Whether to respect the system font scale (default true).